/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;

/**
 *
 * @author Dao Thai Duy
 */
@Entity
public class SetMealEntity extends FnBProductEntity implements Serializable {
    private static long serialVersionUID = 1L;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public static void setSerialVersionUID(long aSerialVersionUID) {
        serialVersionUID = aSerialVersionUID;
    }
    @OneToMany(mappedBy="setMeal")
    private List<ReservedSetMealEntity> reservedSetMeal=new ArrayList<ReservedSetMealEntity>();
    @ManyToMany
    private List<MealEntity> meal= new ArrayList<MealEntity>();

    public List<ReservedSetMealEntity> getReservedSetMeal() {
        return reservedSetMeal;
    }

    public void setReservedSetMeal(ArrayList<ReservedSetMealEntity> reservedSetMeal) {
        this.reservedSetMeal = reservedSetMeal;
    }

    public List<MealEntity> getMeal() {
        return meal;
    }

    public void setMeal(ArrayList<MealEntity> meal) {
        this.meal = meal;
    }

   
}
